﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using HelloMinasan.Domain;

namespace HelloMinasan.Web.Song.ViewModels
{
    public class Question
    {
        [Required]
        public string QuestionContent { get; set; }

        [Required]
        public string AnswerA { get; set; }

        [Required]
        public string AnswerB { get; set; }

        [Required]
        public string AnswerC { get; set; }

        [Required]
        public string AnswerD { get; set; }

        public string SelectedAnswer { get; set; }

        [Required]
        public string CorrectAnswer { get; set; }
    }

    [Serializable]
    public class TestEntrie
    {
        public int TestId { get; set; }
        public HelloMinasan.Domain.Song Song { get; set; }
        public List<Question> Questions { get; set; }
        public int SongId { get; set; }
        public bool IsSelectionBlock { get; set; }

        public List<SelectListItem> BlockPackage = new List<SelectListItem> 
        {
            new SelectListItem{ Value = "1", Text = "1"},
            new SelectListItem{ Value = "5", Text = "5"},
            new SelectListItem{ Value = "10", Text = "10"},
            new SelectListItem{ Value = "15", Text = "15"}
        };

        public string SelectedPackage { get; set; }
        //    public bool IsUseRandomizeServices { get; set; }
        //    public List<string> FillAnswers { get; set; }
        //    public string[] SongLyric
        //    {
        //        get;
        //        set;
        //    }

        //    public List<int> HiddenPosition { get; set; }
        public TestResult Result { get; set; }
    }

}